package net.println.kotlin.chapter2

val range:IntRange = 0..1024//[0,1024]
val range_exclusive:IntRange = 0 until 1024//[0,1024)
val emptyIntRange:IntRange = 0..-1

fun main(args: Array<String>) {
    println(emptyIntRange.isEmpty())
    println(range.contains(500))
    println(range.contains(5000))
    println(500 in range)

    for(i in range_exclusive) {
        print("$i,")
    }

}